﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/layout/TwoColumn.Master" CodeBehind="ShowDetailed.aspx.cs" Inherits="Plain.Demo.Blog.web.ShowDetailed" %>
<%@ Register Assembly="Plain.Web" Namespace="Plain.Web" TagPrefix="plain" %>
<asp:Content ContentPlaceHolderID="cphColumn1" ID="ctnColumn1" runat="server">  
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam pellentesque enim blandit enim bibendum blandit.
    Integer eu leo ac est aliquet imperdiet. Quisque nec justo id augue posuere malesuada. Nullam ac metus. Cras non leo
    ut est placerat condimentum. Aliquam ut enim. Quisque non sapien in enim eleifend faucibus. Pellentesque sodales. Mauris
    auctor arcu sit amet felis. Donec eget enim ut lacus pharetra condimentum. Nulla in felis vel tortor imperdiet consectetuer.
    Sed id ante.</p>
</asp:Content>
<asp:Content ContentPlaceHolderID="cphColumn2" ID="ctnColumn2" runat="server">  
    <asp:ListView ID="lvBlogEntry" runat="server" DataSourceID="pdsBlogEntry" ItemPlaceholderID="blogEntryContainer">
        <LayoutTemplate>
            <asp:PlaceHolder ID="blogEntryContainer" runat="server" />
        </LayoutTemplate>
        <ItemTemplate>
            <h1><%# Eval("Title") %></h1>
            <p>
                <%# Eval("Content") %>
            </p>
            <p>
                Created: <%#Eval("Created") %>
            </p>
            <hr />
        </ItemTemplate>
    </asp:ListView>
    <plain:PlainDataSource ID="pdsBlogEntry" runat="server" Type="Plain.Demo.Blog.BlogEntry, Plain.Demo.Blog">
        <Parameters>
            <asp:QueryStringParameter Name="Id" QueryStringField="Id" />
        </Parameters>
    </plain:PlainDataSource>
</asp:Content>